package psn.zjk.springboot.controller.rest;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * reset风格控制层
 * 张骏凯
 * 2020年1月31日
 */
@RestController public class UserRestController {

    private final Logger LOGGER = LoggerFactory.getLogger(getClass());


    @NacosValue(value = "${val:def}", autoRefreshed = true)
    private String val;

    @RequestMapping("/hello") public String hello() {
        return val;
    }

}
